﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using SGRapidForm.Common;
using SGRapidForm.Foundation.Entity;

namespace SGRapidForm.Foundation.Service.Interface
{
     [ServiceContract(Namespace = "http://www.solutiongear.net/SGRapidForm/")]
   public interface IAutoGennoService
    {
        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        List<AutoGennoEntity> PagingGetAutoGenno(Int32 startRecord, Int32 maxRecords, String sortColumns, String filterConditions);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        int PagingGetAutoGennoCount(String filterConditions);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool Auto_BulkDeleteAutos(string keyids);
       
         [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        AutoGennoEntity Auto_GetByKeyid(string keyid);

         [OperationContract]
         [FaultContract(typeof(ServiceExceptionDetail))]
         bool Auto_UpdateAuto(AutoGennoEntity autoEntity);

         [OperationContract]
         [FaultContract(typeof(ServiceExceptionDetail))]
         bool Auto_Add(AutoGennoEntity autoEntity);

         [OperationContract]
         [FaultContract(typeof(ServiceExceptionDetail))]
         string Auto_GetNoByNoClass(string classCode, string deptCode); 
    }
}
